package com.ark.cloud.dataservices.common.exception;

import lombok.Getter;

@Getter
public enum OrganizationErrorType implements ErrorType {

    USER_NOT_FOUND("030100", "用户未找到"),
    ROLE_NOT_FOUND("030200", "角色未找到"),
    SEAT_NOT_FOUND("030500", "席位未找到"),
    USER_NAME_EXIST("030300", "当前账号已存在"),
    MOBILE_EXIST("030400", "该手机号已被使用"),

    SYS_DATA("200","系统数据,无法删除");

    /**
     * 错误类型码
     */
    private String code;
    /**
     * 错误类型描述信息
     */
    private String mesg;

    OrganizationErrorType(String code, String mesg) {
        this.code = code;
        this.mesg = mesg;
    }
}
